package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Bean;

import java.io.Serializable;

/**
 * 权限实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_grade")
public class Grade implements Serializable {

    private static final long serialVersionUID = 1L;
     /** 权限编号*/
    @TableId(value = "pk_gradeId", type = IdType.AUTO)
    private Integer gradeId;

    /** 权限名*/
    @TableField("g_name")
    private String name;

    /** 角色编号*/
    @TableField("fk_roleId")
    private Integer roleId;


}
